# Makefile

CXX = g++
CXXFLAGS = -g3 -Wall -Wextra
INCLUDE = -I./lib
LDFLAGS =
LDLIBS = -lgflags
VPATH = ./lib

PROGS =	uevent_monitor

.PHONY: all
all: $(PROGS)
	@echo "build OK!"

clean:
	@$(RM) $(PROGS) *.o
	@echo "clean OK!"

%.o:%.cpp
	$(CXX) -o $@ -c $< $(CXXFLAGS) $(INCLUDE)

uevent_monitor: uevent_monitor.o wrapsock.o socket_address.o sock_ntop.o wraplib.o
	$(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)

